#include <stdio.h>
#define N 8
void fun(int a[N][N])
{
	int i, j, k = 1, t;
	/**********************found***********************/
	t = 0;
	/**********************found***********************/
	while (t <= N / 2)
	{
		for (i = t; i < N - t; i++)
			for (j = t; j < N - t; j++)
				/**********************found***********************/
				a[i][j] = k;
		k++;
		t++;
	}
}int main()
{
	int i, j;
	int a[N][N] = { 0 };
	fun(a);
	for (i = 0; i < N; i++)
	{
		for (j = 0; j < N; j++)
			printf("%5d", a[i][j]);
		printf("\n");
	}
}